function Z = Function (Input) 
x= Input(1);
y = Input(2);
Z = 3*power((1-x),2)*exp(-power(x,2)-...
    power(y+1,2))-10*(x/2-power(x,3)-power(y,4)) ...
    *exp(-power(x,2)-power(y,2))...
    -exp(-power(x+1,2)-power(y,2))/3;
end